<?php
$this->breadcrumbs=array(
	Yii::t('cms', 'Users')=>array('index'),
	$model->contract,
);
?>

<h2 class="maintitle"><?php echo $model->username; ?></h2>
<div class="left col23">
	<div class="general_box">
		<ul class="actions">
			<li><?php echo CHtml::link(CHtml::image('/css/ico/add.png').' '.Yii::t('cms', 'Create'),array('create')); ?></li>
			<li><?php echo CHtml::link(CHtml::image('/css/ico/edit.png').' '.Yii::t('cms', 'Update'),array('update','id'=>$model->id)); ?></li>
			<li><?php echo CHtml::linkButton(CHtml::image('/css/ico/del.png').' '.Yii::t('cms', 'Delete'),array('submit'=>array('delete','id'=>$model->id),'confirm'=>Yii::t('cms', 'Are you sure to delete this item?'))); ?></li>
		</ul>
		
	</div>
	<div class="balance_box">
		<?php echo $model->getAttributeLabel('balance'); ?>: <?php echo $model->balance; ?>
	</div>
	<div class="info_box">
	<dl>
		<dt><?php echo $model->getAttributeLabel('end_time'); ?></dt><dd><?php echo $model->end_time; ?></dd>
		<dt><?php echo $model->getAttributeLabel('pkt_end_time'); ?></dt><dd><?php echo $model->pkt_end_time; ?></dd>
		<dt><?php echo $model->getAttributeLabel('packet_id'); ?></dt><dd><?php echo $model->packet->name; ?></dd>
		<dt><?php echo $model->getAttributeLabel('speed_id'); ?></dt><dd><?php echo $model->speed->name; ?></dd>
	</dl>
	</div>
</div>
<div class="right col75">
	<div class="message">
		Нелло май френд мессаге
	</div>
	<div class="clearbox">
	<div class="general_box left col46">
		<h3 class="bar">Detail</h3>
		<dl>
			<dt><?php echo $model->getAttributeLabel('contract'); ?></dt><dd><?php echo $model->contract; ?></dd>
			<dt><?php echo $model->getAttributeLabel('account'); ?></dt><dd><?php echo $model->account; ?></dd>
			<dt><?php echo $model->getAttributeLabel('ip_address'); ?></dt><dd><?php echo $model->ip_address; ?></dd>
		</dl>
	</div>
	<div class="general_box right col46">
		<h3 class="bar">Contact information</h3>
		<dl>
			<dt><?php echo $model->getAttributeLabel('address'); ?></dt><dd><?php echo $model->address; ?></dd>
			<dt><?php echo $model->getAttributeLabel('email'); ?></dt><dd><?php echo $model->email; ?></dd>
			<dt><?php echo $model->getAttributeLabel('telephon'); ?></dt><dd><?php echo $model->telephon; ?></dd>
		</dl>
	</div>
	</div>
	<div class="clearbox">
		<h3 class="bar"><?php echo Yii::t('user', 'Payment History')?></h3>
		<?php $this->widget('application.components.MyGridView', array(
			'dataProvider'=>$dataProvider,
			'emptyText'=>Yii::t('cms', 'No results found.'),
			'summaryText'=>Yii::t('cms', 'Displaying {start}-{end} of {count} result(s).'),
			'cssFile'=>Yii::app()->request->baseUrl.'/css/grid-view.css',
			'columns'=>array(
				'payment_date',
				'payment_sum',
				'faktura_number',
				array(
					'name'=>'admin_id',
					'value'=>'$data->admin->username',
				),
				'comment'
			),
		)); ?>
	</div>
</div>
